package hacker_rank.oct13;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class HackerX {
	
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int N = Integer.parseInt(br.readLine());
		
		int[] ti = new int[N];
		int[] fi = new int[N];
		
		String[] tmp = null;
		for(int i = 0; i < N; i++) {
			tmp = br.readLine().split(" ");
			ti[i] = Integer.parseInt(tmp[0]);
			fi[i] = Integer.parseInt(tmp[1]);
		}
		solve(ti,fi);
	}
	static void solve(int[] ti, int[] fi)
	{
		
	}
}
